package com.smedi.ismedi.constructionproject.core.application.query;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.smedi.ismedi.constructionproject.core.application.command.ProjectAssignmentListQueryCommand;
import com.smedi.ismedi.constructionproject.core.application.query.vo.ProjectAssignmentVo;
import com.smedi.ismedi.constructionproject.core.domain.aggregatemodel.ProjectAssignment;
import com.smedi.ismedi.constructionproject.core.domain.aggregatemodel.ProjectAssignmentForMobile;

import java.util.List;
import java.util.Map;

/**
 * @Author: xulinjun
 * @Date: 2021-6-11 9:23
 */
public interface ProjectAssignmentQueryService {
    IPage getProjectAssignmentPagination(Long offset, Long pageSize, Long projectId, Long projectOrganizationId, String lastName, String userName, String employeeNum, String mobile);

    IPage getProjectAssignmentPaginationContainsChildren(Long offset, Long pageSize, Long projectId, Long projectOrganizationId, String lastName, String userName, String employeeNum, String mobile);

    ProjectAssignmentForMobile getProjectAssignmentContainsChildren(Long projectId, Long projectOrganizationId, String lastName, String userName, String employeeNum, String mobile);

    ProjectAssignmentForMobile getProjectAssignment(Long projectId, Long projectOrganizationId, String lastName, String userName, String employeeNum, String mobile);


    List<Long> getPersonIdsByProjectId(Long projectId);

    List<ProjectAssignment> getByPersonIds(List<Long> personIds);

    List<Long> getPersonIdsByProjectIdNoToken(Long projectId);

    Map<Long, String> getProjectNamesByPersonIds(List<Long> personIds);

    List<ProjectAssignmentVo> getProjectAssignmentsByPersonId(Long personId);

    List<ProjectAssignment> getProjectAssignmentsByPersonIdNoToken(Long personId);

    List<Long> getDistinctProjectIdsByPersonId(Long personId);

    List<ProjectAssignment> getProjectAssignmentList(ProjectAssignmentListQueryCommand projectAssignmentListQueryCommand);

    List<ProjectAssignment> getProjectAssignmentListWithoutToken(ProjectAssignmentListQueryCommand projectAssignmentListQueryCommand);
}
